<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"  %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>学生查看个人信息</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="css/student.css">

</head>

<body>

	<jsp:include page="head.jsp"></jsp:include>
	<div>
		<div id="left">
			<ul>
				<li>
					<h2>
						<a href="<%=basePath%>message.action?id=<s:property value="#session['u']" />" >查看个人信息</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>getMessage.action?id=<s:property value="#session['u']" />" >修改个人信息</a>
					</h2>
				</li>
				
				<li>
					<h2>
						<a href="<%=basePath%>studScore.action?id=<s:property value="#session['u']" />">查看个人成绩</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>stu_message_change.jsp" />修改密码</a>
					</h2>
				</li>
			</ul>
		</div>
		<!-- 学生查看个人信息 -->
		<div id="main">
			<h4>当前位置 ****** 个人信息查询</h4>
			
			<s:if test="#request['stu']!=null">		
					<s:iterator value="#request['stu']" id="student">
						 <li>
						 学号：<s:property value="#student.id" />
						 </li>
						  <li>
						 姓名：<s:property value="#student.name" />
						 </li>
						  <li>
						 出生日期：<s:date name="#student.birthday" format="yyyy-MM-dd" />
						 </li>
						 <li>
						  性别：<s:property value="#student.sex" />
						 </li>
						  <li>
						 学院：<s:property value="#student.academy" />
						 </li>
						  <li>
						 专业：<s:property value="#student.major" />
						 </li>
						  <li>
						 年级：<s:property value="#student.grade" />级
						 </li>
						  <li>
						 班级：<s:property value="#student.theclass" />班
						 </li>
						  <li>
						 电子邮箱：<s:property value="#student.email" />
						 </li>
						  <li>
						 联系方式：<s:property value="#student.phone" />
						 </li>
						 <li>
						  入校日期：<s:date name="#student.endate" format="yyyy-MM-dd" />
						 </li>
						 
			</s:iterator>
				
			</s:if>
		</div>
	<hr width=100% size=5 color=#2323fe style="FILTER: alpha(opacity=100,finishopacity=0,style=3)">


</div>
</body>
</html>
